package org.poker.swing;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.Action;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

public class EventControl implements ActionListener, ChangeListener, MouseListener {
    
	private Action[] actions;
	
	public EventControl(Action[] actions) {
		this.actions = actions;
	}
    
//    public void keyTyped(KeyEvent e) {
//    	ActionEvent e1 = null;
//    	int charId = e.getKeyChar();
//    	if(charId>='1'&&charId<='5') {
//    		e1 = new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, "carta_"+e.getKeyChar(), e.getWhen(), e.getModifiers());
//    		this.actions[0].actionPerformed(e1);
//    	} else if (e.getKeyChar()=='t') {
//    		e1 = new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, null, e.getWhen(), e.getModifiers());
//    		this.actions[1].actionPerformed(e1);
//    	} else if (e.getKeyChar()=='n') {
//    		e1 = new ActionEvent(e.getSource(), ActionEvent.ACTION_PERFORMED, null, e.getWhen(), e.getModifiers());
//    		this.actions[2].actionPerformed(e1);
//    	}
//    }

    public void actionPerformed(ActionEvent e) {
    }

    public void mouseClicked(MouseEvent e) {
    }
    
    public void keyPressed(KeyEvent e) {
	}

	public void keyReleased(KeyEvent e) {
	}

	public void mouseEntered(MouseEvent e) {
	}

	public void mouseExited(MouseEvent e) {
	}

	public void mousePressed(MouseEvent e) {
	}

	public void mouseReleased(MouseEvent e) {
	}

	public void stateChanged(ChangeEvent e) {
	}
}
